package org.tgcloud.group.web.controller.dto.file;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.tgcloud.group.core.fileUtils.waterMarkFileUtils.picUtil.MyUrlConverterUtil;

import java.math.BigDecimal;
import java.net.URL;
import java.util.Date;
import java.util.List;

/**
 * @author: zhy
 * @create: 2023-08-25 14:55
 * @description:
 */
@EqualsAndHashCode
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
public class UserType1DTO {


    @ExcelProperty("商品名称")
    private String goodName;

    @ExcelProperty("有效期至")
    private String expirationDate;

    @ExcelProperty("保质期")
    private String warrantyDate;

    @ExcelProperty("规格")
    private String goodSkuName;

    @ExcelProperty("数量")
    private Integer goodNum;

    @ExcelProperty("旗舰店售卖价")
    private BigDecimal goodPrice;

    @ExcelProperty("天猫/京东链接")
    private String goodOnlineLink;

    @ExcelProperty(value = "URL图片", converter = MyUrlConverterUtil.class)
    private List<URL> goodPic;


    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;

}
